#header-only library

kmpkg_from_gitee(
        OUT_SOURCE_PATH SOURCE_PATH
        REPO kumo-pub/rapidjson
        REF v${VERSION}
        SHA512 ca939e7f87e04d363ba3ee83483873f27f07ef07ce73fa0b93abf348c2975f1eb4525089d1f14a40707b5f5be5705d314110ea4649c74dd0ccbdf789a317be17
        HEAD_REF master
)
# Use RapidJSON's own build process, skipping examples and tests
kmpkg_cmake_configure(
    SOURCE_PATH "${SOURCE_PATH}"
    OPTIONS
        -DKMCMAKE_BUILD_TEST=OFF
)

kmpkg_cmake_install(
        DISABLE_PARALLEL
)

kmpkg_copy_pdbs()
kmpkg_cmake_config_fixup(PACKAGE_NAME rapidjson CONFIG_PATH lib/cmake/rapidjson)
kmpkg_fixup_pkgconfig()

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")

kmpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
